package constant

const (
	PrefixAuthCode = "prefix_auth_code:"

	// RegistStatusAudited 用户注册-已审批
	RegistStatusAudited = "2"

	// RegistStatusNotAudited 用户注册-拒绝
	RegistStatusNotAudited = "3"

	// RegisterIdentifierEmail 用户注册-邮箱注册
	RegisterIdentifierEmail = "email"

	// RegisterIdentifierPhone 用户注册-手机号注册
	RegisterIdentifierPhone = "phone"

	AdminUser = "1"

	AgencyUser = "1"

	NodeTypeDept = "dept"

	TypeOfDevDataSize     = "DEV_DATA_SIZE"
	TypeOfDevDataNum      = "DEV_DATA_NUM"
	TypeOfRuleProcs       = "DEV_RULE_PROCS"
	TypeOfForwardNum      = "DATA_FORWARD_NUM"
	TypeOfAlarmNum        = "DATA_ALARM_NUM"
	TypeOfNotifyNum       = "DATA_NOTIFY_NUM"
	TypeOfDevCount        = "DEV_COUNT"
	TypeOfDevActiveCount  = "DEV_ACTIVE_COUNT"
	TypeOfUserCount       = "USER_COUNT"
	TypeOfUserActiveCount = "USER_ACTIVE_COUNT"
	TypeOfDevEventList    = "DEV_EVENT_LIST"

	// 敏感内容加密加盐
	SALTKEY = "ssiot_aes_len_16"
	// 设备分组缓存
	DeviceDeptCache = "DEVDEPT"
	// 设备简讯缓存
	DeviceEasyCache = "dev_cache"
	// 事件列表缓存
	DevEventCache = "devEventCache"
	// lora网关配置从节点
	LoraSlaveMqttConf = "loraSlaveMq"
	// 数据同步url
	DataSyncUrl = "dataSyncUrl"
)

var (
	// DefaultRole 系统默认角色
	DefaultRole = "sys-default-role"

	// DefaultPwd 默认密码
	DefaultPwd = "123456"

	// PublicDept 公共分组
	PublicDept = "public-resource"

	// 文件存储路径
	FilePath = "./data/assets"

	// 文件清理忽略路径
	CleanIgnore = make([]string, 0)

	// 缩略图拼接路径
	ThumbnailConcat = "_thumbnail"

	DefaultDataKeepDays = 90

	FileCleanThreshold = "FILE_CLEAN_THRESHOLD"
	FileCleanType      = "FILE_CLEAN_TYPE"

	FileUploadDiscard = false

	DataSyncUrlCache = ""
)
